import { createAxios } from '@/utils/http/axios';

enum Api {
  listUserLink = '/tbuser/deviceUserMap/getDeviceUserLinkByDeviceId',
}

export function listDeviceUserLinkApi(deviceId: string) {
  return createAxios({
    requestOptions: {
      apiUrl: '/hc-api',
    },
  }).get(
    {
      url: Api.listUserLink + '/' + deviceId,
    },
    {
      retryRequest: {
        isOpenRetry: true,
        count: 5,
        waitTime: 1000,
      },
    },
  );
}
